package org.example.promptword.common;


public class BaseException extends RuntimeException {
    private String code;
    private String message;

    public BaseException() {
        super();
    }

    public BaseException(ResponseEnum code) {
        super(code.getMessage());
        this.code = code.getCode();
        this.message = code.getMessage();
    }

    public BaseException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
